package de.uhilger.app.mdi.ui;

import java.awt.BorderLayout;
import java.awt.Container;

import de.uhilger.app.ui.MainFrame;
import javax.swing.JMenuBar;
import javax.swing.JScrollPane;

import de.uhilger.app.Application;

public class MDIMainFrame extends MainFrame {
	
  public MDIMainFrame(Application owner, String title, WindowMenu wm, MDIDesktopPane dp) {
    super(owner, title);
    JMenuBar mb = getJMenuBar();
    mb.add(wm, mb.getComponentCount() - 1);
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout(0, 0));
    contentPane.add(new JScrollPane(dp), BorderLayout.CENTER);
  }
  
}
